<template>
  <div class="background">
    <div class="bgTop">
      <span class="bgTop-click">个人分析</span>
      <span @click="todo">账号</span>
      <span @click="todo">关注</span>
    </div>
    <div class="bg-hr"></div>
    <tab-control-dark :titles="titles" @tabClick="tabClick"/>
  </div>
</template>

<script>
import tabControlDark from 'components/content/tab_control/tab_control_dark.vue'

export default {
  name: "profile_background",
  components: {
    tabControlDark
  },
  data() {
    return {
      titles: ['全部', '衣装', '家纺', '美妆', '箱包', '家具', '鞋袜', '首饰', '玉镯']
    }
  },
  methods: {
    todo() {
      alert("正在开发中...")
    },
    tabClick(index) {
      this.$emit('tabClick', index, this.titles);
    }
  }
}
</script>

<style scoped>
  .background {
    width: 100%;
    height: 260px;
    background-color: #fb7299;
    padding: 20px 20px 0;
  }

  .bgTop {
    width: auto;
    height: 40px;
  }

  .bgTop span {
    font-size: 20px;
    font-weight: 800;
    line-height: 40px;
    color: #fff;
    margin: 0 20px 0 0;
    opacity: 0.6;
  }

  .bgTop .bgTop-click {
    font-size: 24px;
    opacity: 1;
  }

  .bg-hr {
    margin-top: 12px;
    height: 0.5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
  }
</style>